Add a test involving a selection
authorMatthias Clasen <mclasen@redhat.com>
Sun, 19 Jun 2011 21:19:34 +0000 (17:19 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 5 Jul 2011 20:07:59 +0000 (16:07 -0400)
tests/a11y/Makefile.am
tests/a11y/notebook.txt [new file with mode: 0644]
tests/a11y/notebook.ui [new file with mode: 0644]

index 2e287013e76a5276d740d48331f7048af859a1f8..0a07f19ab17b1f9de1875eed226ad24ed083d7aa 100644 (file)
@@ -24,4 +24,5 @@ accessibility_dump_SOURCES = \
 EXTRA_DIST += \
        hello-world.ui hello-world.txt \
        mnemonic.ui mnemonic.txt \
-       accessible-name.ui accessible-name.txt
+       accessible-name.ui accessible-name.txt \
+       notebook.ui notebook.txt
diff --git a/tests/a11y/notebook.txt b/tests/a11y/notebook.txt
new file mode 100644 (file)
index 0000000..8559e4d
--- /dev/null
@@ -0,0 +1,65 @@
+window1
+  "window"
+  index: 0
+  state: enabled resizable sensitive showing visible
+  toolkit: gail
+  notebook1
+    "page tab list"
+    parent: window1
+    index: 0
+    state: enabled focusable sensitive showing visible
+    toolkit: gail
+    selection count: 1
+    selected children: 0
+    Tab 1
+      "page tab"
+      parent: notebook1
+      index: 0
+      name: Tab 1
+      state: enabled multi-line selectable selected sensitive showing visible
+      text: Tab 1
+      character count: 5
+      caret offset: 0
+      default attributes: left-margin:0 right-margin:0 indent:0 invisible:false editable:false pixels-above-lines:0 pixels-below-lines:0 pixels-inside-wrap:0 bg-full-height:0 scale:1 rise:0 underline:none strikethrough:false bg-stipple:false fg-stipple:false fg-color:0,0,0 bg-color:56540,56026,54741 wrap-mode:word justification:left size:<omitted> weight:<omitted> family-name:<omitted> stretch:<omitted> variant:<omitted> style:<omitted> language:<omitted> direction:<omitted>
+      page1
+        "push button"
+        index: 0
+        name: Yes
+        state: enabled focusable sensitive showing visible
+        toolkit: gail
+        text: Yes
+        character count: 3
+        caret offset: 0
+        default attributes: left-margin:0 right-margin:0 indent:0 invisible:false editable:false pixels-above-lines:0 pixels-below-lines:0 pixels-inside-wrap:0 bg-full-height:0 scale:1 rise:0 underline:none strikethrough:false bg-stipple:false fg-stipple:false fg-color:0,0,0 bg-color:56540,56026,54741 wrap-mode:word justification:left size:<omitted> weight:<omitted> family-name:<omitted> stretch:<omitted> variant:<omitted> style:<omitted> language:<omitted> direction:<omitted>
+        image size: 20 x 20
+        image description: (null)
+        action 0 name: click
+        action 0 keybinding: <Alt>y
+        action 1 name: press
+        action 2 name: release
+    Tab 2
+      "page tab"
+      parent: notebook1
+      index: 1
+      name: Tab 2
+      state: enabled multi-line selectable sensitive showing visible
+      text: Tab 2
+      character count: 5
+      caret offset: 0
+      default attributes: left-margin:0 right-margin:0 indent:0 invisible:false editable:false pixels-above-lines:0 pixels-below-lines:0 pixels-inside-wrap:0 bg-full-height:0 scale:1 rise:0 underline:none strikethrough:false bg-stipple:false fg-stipple:false fg-color:0,0,0 bg-color:56540,56026,54741 wrap-mode:word justification:left size:<omitted> weight:<omitted> family-name:<omitted> stretch:<omitted> variant:<omitted> style:<omitted> language:<omitted> direction:<omitted>
+      page2
+        "push button"
+        index: 1
+        name: No
+        state: enabled focusable sensitive visible
+        toolkit: gail
+        text: No
+        character count: 2
+        caret offset: 0
+        default attributes: left-margin:0 right-margin:0 indent:0 invisible:false editable:false pixels-above-lines:0 pixels-below-lines:0 pixels-inside-wrap:0 bg-full-height:0 scale:1 rise:0 underline:none strikethrough:false bg-stipple:false fg-stipple:false fg-color:0,0,0 bg-color:56540,56026,54741 wrap-mode:word justification:left size:<omitted> weight:<omitted> family-name:<omitted> stretch:<omitted> variant:<omitted> style:<omitted> language:<omitted> direction:<omitted>
+        image size: 20 x 20
+        image description: (null)
+        action 0 name: click
+        action 0 keybinding: <Alt>n
+        action 1 name: press
+        action 2 name: release
diff --git a/tests/a11y/notebook.ui b/tests/a11y/notebook.ui
new file mode 100644 (file)
index 0000000..95d1328
--- /dev/null
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkNotebook" id="notebook1">
+        <property name="visible">True</property>
+        <child>
+          <object class="GtkButton" id="page1">
+            <property name="label">gtk-yes</property>
+            <property name="use_stock">True</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child type="tab">
+          <object class="GtkLabel" id="tab1">
+            <property name="label" translatable="yes">Tab 1</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkButton" id="page2">
+            <property name="label">gtk-no</property>
+            <property name="use_stock">True</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child type="tab">
+          <object class="GtkLabel" id="tab2">
+            <property name="label" translatable="yes">Tab 2</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>